#ifndef TRANSFORMERCONTENTRECORDMEMROYOUT_HPP
#define TRANSFORMERCONTENTRECORDMEMROYOUT_HPP

#include "logger.hpp"
#include "transContentDefine.hpp"
#include "transContentThreadPool.hpp"
#include "transContentErrorCode.hpp"
#include "transContentSetting.hpp"

class TransContentRecordMemoryOut{
	public:
		TransContentRecordMemoryOut():sending(0), working(1), sendData(NULL), sendDataLen(0), timeout(INT_MAX), waitMutex(PTHREAD_MUTEX_INITIALIZER), waitCond(PTHREAD_COND_INITIALIZER), stscb(NULL){
			debug_enter();
			pthread_create(&workThread, NULL, workRoute, this);
			pthread_detach(workThread);
			debug_leave();
		}
		virtual ~TransContentRecordMemoryOut(){}

		int sendData(const char* buffer, int len);
};
#endif //TRANSFORMERCONTENTRECORDMEMROYOUT_HPP
